package com.xuanwu.shop.service.impl;

import java.util.List;

import com.xuanwu.shop.dao.GoodsDaoInterface;
import com.xuanwu.shop.dao.impl.GoodsDaoImpl;
import com.xuanwu.shop.entity.Goods;
import com.xuanwu.shop.service.GoodsServiceInterface;

public class GoodsServiceImpl implements GoodsServiceInterface {

	GoodsDaoInterface goodsDao = new GoodsDaoImpl();
	@Override
	public List<Goods> getByCatId(int catId) {
		return goodsDao.findByCatId(catId);
	}

	@Override
	public Goods getById(String id) {
		return goodsDao.findById(id);
	}

}
